//全局函数重载运算符+
#include <iostream>
using namespace std;
class Person{
public:
    int x;
    int y;
    Person(int x=0,int y=0){
        this->x=x;
        this->y=y;
    }
};
Person operator+(Person l1,Person l2){
    Person tmp;
    tmp.x=l1.x+l2.x;
    tmp.y=l1.y+l2.y;
    return tmp;
}
int main()
{
    Person s1(9,2);
    Person s2(3,1);
    Person s3=s1+s2;
    cout<<s3.x<<" "<<s3.y<<endl;
    return 0;
}